Skip to content

Consume cooperative diagnostic outbox cases - #545

Open
JusterZhu wants to merge 3 commits into
justerzhu-diagnostic-outbox-uploadfrom
justerzhu-diagnostic-outbox-consumer
Open

JusterZhu wants to merge 3 commits into
justerzhu-diagnostic-outbox-uploadfrom
justerzhu-diagnostic-outbox-consumer

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicitly invoked Bowl protocol 1 consumer with permanent stripe locking, bounded input validation, persisted immutable ZIP retries, and hash-confirmed cleanup with recoverable tombstones.
  • Preserve unmarked cases unless the host explicitly enables migration after legacy participants stop. Document scheduling, privacy, local filesystem, lock contention, and cleanup requirements.
  • Add Windows/Linux cross-process lock tests and Native AOT publish-and-run smoke CI.

Verification

  • Core multi-target build succeeded; 28 diagnostic tests passed locally, including a real Windows child-process lock conflict and retry.
  • AOT smoke passed in managed mode. Local Native AOT publish is blocked by the missing Windows C++ linker; Windows/Linux Native AOT execution and Linux locking are configured in CI and must pass before merge.
  • The final Bowl protocol document was checked, but this is not a cross-repository end-to-end test. Depends on Bowl GeneralLibrary/Bowl#5, transport Add opt-in diagnostic artifact transport #542, and a GeneralSpace server that verifies and returns contentSha256.

Operational constraints

The host must explicitly schedule pending cases and confirmed-tombstone cleanup, use protected local storage and cooperative participants, and bound HTTP duration. Stripe contention can contribute to Bowl falling back to exit-code-only monitoring if retries are exhausted. Legacy participants must all be stopped before opting into legacy cases.

JusterZhu and others added 2 commits November 22, 2026 23:51
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 22, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Evidence deletion depends on coordinated Bowl/GeneralSpace deployment and stored-hash verification, but cross-repository end-to-end validation is absent and Windows/Linux Native AOT and cross-process lock CI remain unconfirmed.

No open issues 🎉

What changed in this PR

Adds an explicitly scheduled consumer for Bowl protocol 1 diagnostic cases, extending the existing artifact transport with persisted retries and hash-confirmed cleanup without changing the bootstrap lifecycle.

Changes:

  • Adds permanent stripe locking, bounded validation, immutable ZIP retries, and recoverable cleanup tombstones.
  • Documents host scheduling, legacy migration, privacy, and filesystem requirements.
  • Adds consumer tests, cross-process lock checks, and Windows/Linux Native AOT smoke CI.
File Description
tests/​OutboxLockHelper/​Program.cs Holds a stripe lock for cross-process contention tests.
tests/​OutboxLockHelper/​OutboxLockHelper.csproj Defines the lock-helper executable.
tests/​OutboxAotSmoke/​Program.cs Checks identical retry bytes and hash-confirmed cleanup.
tests/​OutboxAotSmoke/​OutboxAotSmoke.csproj Enables Native AOT publishing for the smoke executable.
tests/​CoreTest/​Diagnostics/​DiagnosticOutboxConsumerTests.cs Covers retries, validation, locking, cancellation, and cleanup.
tests/​CoreTest/​CoreTest.csproj References the cross-process lock helper.
src/​GeneralUpdate.Core/​Diagnostics/​DiagnosticOutboxConsumer.cs Implements the cooperative outbox lifecycle.
docs/​diagnostic-artifact-transport.md Explains consumer usage and operational constraints.
.github/​workflows/​diagnostic-outbox.yml Runs diagnostic tests and Native AOT smoke checks on Windows and Linux.

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants